package com.tcxhb.job.core.constants.enums;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/21
 */
public enum LogActionEnum {
    SubmitPool("submit-pool", "提交线程池"),
    ThreadRun("thread-run", "线程执行"),
    RetryThreadRun("retry-run", "任务重试"),
    RouteAgent("route-agent", "分发到agent"),
    UpdateInstance("instance-update-status", "更新状态"),
    UpdateScheduleStatus("update-schedule-status", "更新调度状态"),
    CheckInstanceStatus("CheckInstanceStatus", "校准任务状态"),
    JOBCallback("job-callback", "任务状态回调");

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }


    private String code;
    private String name;

    LogActionEnum(String type, String name) {
        this.code = type;
        this.name = name;
    }
}
